<include file="__THEME__/public_header" />
<link href="__APP__/message.css?v2012040501" rel="stylesheet" type="text/css" />
<div id="page-wrap">
    <div id="main-wrap">
      <div id="col" class="st-grid content-bg">
          <div id="col4" class="main-left">
              <div id="aside" class="pad">
                  <dl class="nav-left mt10 border-no">
                      <dd><a href="{:U('public/Mention')}">@提到我的</a></dd>
                      <dd><a href="{:U('public/Comment/index',array('app_name'=>$_GET['app_name'],'type'=>'receive'))}">收到的评论</a></dd>
                      <dd><a href="{:U('public/Comment/index',array('app_name'=>$_GET['app_name'],'type'=>'send'))}">发出的评论</a></dd>
                      <dd><a href="{:U('public/Message')}">我的私信</a></dd>
                      <dd class="current"><a href="{:U('public/Message/notify')}">系统消息</a></dd>
                  </dl>
              </div>
          </div>
          <div id="col7" class="main-right">
              <div class="extend minh person-set">
                  <!--tab菜单-->
                  <div class="feed-nav">
                    <div class="set-hd"><h3>{:L('PUBLIC_SYSTEM_MESSAGE')}</h3></div>
                  </div>
                  <!--tab菜单/end-->
                <!--消息列表-->
                <div class="private-lists">
                    <if condition="empty($list['data'])"><div class="note">{:L('PUBLIC_NO_MORE_INFO')}</div></if>
                        <volist name='list.data' id='notify'>
                        <dl class="private-list system-list" id='notify_{$notify.id}' >
                          
                           <a class="ico-close hover right" href="javascript:void(0);" onclick="ui.confirm(this,'{:L('PUBLIC_MESSAGE_DELETE_CONFIRM')}')" callback="delnotify({$notify.id})"></a>
                           <dd class="face">
                                    <eq name='notify.appname' value='public'>
                                    <!-- <a href="{:U('public/Index/index')}" class="face"><img src="__THEME__/image/middle_1352347100.jpg" width="30px" height="30px"></a> -->
                                    <p class="name"><a href="{:U('public/Index/index')}">{:L('PUBLIC_WEIBO')}</a></p>
                                    <else />
                                    <!-- <a href="{$notify['app']['app_entry']}" class="face"><img src="{$notify['app']['icon_url']}" width="30px" height="30px"></a> -->
                                    <p class="name"><a href="{$notify['app']['app_entry']}">{$notify['app']['app_alias']}</a></p> 
                                    </eq>
                            </dd>
                            <dd class="info">
                              <p class="hd">
                                  {$notify['body']}
                              </p>
                              <p class="date">{$notify['ctime']|friendlyDate} <php>if($notify['is_read'] == 0){</php><img src="__THEME__/image/icon_new.gif" /><php>}</php></p>
                            </dd>
                            
                          <!--<dd class="info clearfix">                                                      
                            <div class="private-news-list">
                               
                              <ul>
                                <volist name='list.data' id='notify'>
                                <li id="notify_{$notify.id}">
                                  <dd class="face">
                                    <eq name='notify.appname' value='public'>
                                    <a href="{:U('public/Index/index')}" class="face"><img src="__THEME__/image/middle_1352347100.jpg" width="30px" height="30px"></a>
                                    <p class="name"><a href="{:U('public/Index/index')}">{:L('PUBLIC_WEIBO')}</a></p>
                                    <else />
                                    <a href="{$appinfo['app_entry']}" class="face"><img src="{$appinfo['icon_url']}" width="30px" height="30px"></a>
                                    <p class="name"><a href="{$appinfo['app_entry']}">{$appinfo['app_alias']}</a></p> 
                                    </eq>
                                  </dd>
                                  <p class="hd">
                                  {$notify['body']}<php>if($notify['is_read'] == 0){</php>[new]<php>}</php><a href="javascript:void(0);" onclick="ui.confirm(this,'{:L('PUBLIC_MESSAGE_DELETE_CONFIRM')}')" callback="delnotify({$notify.id})">删除</a>
                                  </p>
                                  <p class="date">{$notify['ctime']|friendlyDate} </p>
                                </li>
                                </volist>
                             </ul>
                              
                            </div>
                          </dd>-->
                       
                        </dl>
                        </volist>
                </div>
                <!--页码-->
                <div id="page" class="page">{$list.html}</div>
                <!--页码/end-->
              </div>
          </div>
      </div>
    </div>
</div>
<script type="text/javascript">
  function delnotify(id){
    $.post(U('public/Message/delnotify'),{id:id},function(){
          $('#notify_'+id).fadeOut('8000',function(){
            $(this).remove();
          });
    });
    
  }
</script>
<include file="__THEME__/public_footer" /> 